#include<t_stdio.h>
#include<unistd.h>
#include <sys/types.h>
int main(void){
	pid_t pid = fork();
	if(pid==-1)E_MSG("fork",-1);
	if(pid==0){
	printf("before parent of child..%d\n",getppid());
	printf("child process...%d\n",getpid());
	sleep(2);
	printf("after parent of child ..%d\n",getppid());
	}
	else{
	sleep(1);
	printf("parent...%d\n",getpid());
	}
	return 0;
} 
